From 776c50947e11f3c4b41cef5e2c13744490a8cfc0 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 29 May 2008 18:22:38 +0000 Subject: [PATCH] Bug 535526 - updateiconcache.c: using open/close without prototype 2008-05-29 Tor Lillqvist Bug 535526 - updateiconcache.c: using open/close without prototype * gtk/updateiconcache.c: Include if _MSC_VER. Also, use g_utime() instead of utime() for UTF-8 pathname support on Windows when available. svn path=/trunk/; revision=20238 --- ChangeLog | 8 ++++++++ gtk/updateiconcache.c | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d68a6a8bb9..97dbccecad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-05-29 Tor Lillqvist + + Bug 535526 - updateiconcache.c: using open/close without prototype + + * gtk/updateiconcache.c: Include if _MSC_VER. Also, use + g_utime() instead of utime() for UTF-8 pathname support on Windows + when available. + 2008-05-29 Jan Arne Petersen Bug 56355 – GtkLabel - Not all changes propagate correctly diff --git a/gtk/updateiconcache.c b/gtk/updateiconcache.c index 15fc7ca80a..4d8ce82106 100644 --- a/gtk/updateiconcache.c +++ b/gtk/updateiconcache.c @@ -31,6 +31,7 @@ #endif #include #ifdef _MSC_VER +#include #include #else #include @@ -1547,8 +1548,12 @@ build_cache (const gchar *path) utime_buf.actime = path_stat.st_atime; utime_buf.modtime = cache_stat.st_mtime; +#if GLIB_CHECK_VERSION (2, 17, 1) + g_utime (path, &utime_buf); +#else utime (path, &utime_buf); - +#endif + if (!quiet) g_printerr (_("Cache file created successfully.\n")); } -- 2.30.2